package com.newpage.module_gather.contract;

import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.RevisionExamQuestionInfo;
import com.wetao.lib_common.bean.response.WrongQuestionInfo;

import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2021/6/17 6:49 下午
 * description:
 */
public interface RevisionDetailCon {

    interface View extends BaseViewImp {

        void revisionExamQuestionListResult(RevisionExamQuestionInfo resp);
        void revisionExamQuestionListFail();

        void updateUnderstandSuccess(BaseResponse resp,Integer state);
        void updateUnderstandFail();

        void revisionWrongQuestionResult(BaseResponse resp,boolean isSingle);
        void revisionWrongQuestionFail(boolean isSingle);
    }

    abstract class Presenter extends BasePresenter<RevisionDetailCon.View> {

        public abstract void revisionExamQuestionList(HashMap<String, Object> map, boolean isDialog, boolean cancelable);
        public abstract void updateUnderstand(HashMap<String, String> map,boolean isDialog, boolean cancelable,Integer state);

        //提交订正
        public abstract void revisionWrongQuestion(String req,boolean isDialog, boolean cancelable,boolean isSingle);

    }
}
